import java.util.Scanner;

public class text {
    public static void main(String[] args) {
        int number=10000;
        int cnt=0;
        while(cnt<10){
            if(isPrime(number)){
                cnt++;
                System.out.println(number);
            }
            number++;
        }
    }
    public static boolean isPrime(int number){
        for(int i=2;i<=number/i;i++){
            if(number%i==0){
                return false;
            }
        }
        return true;
    }
}
